package com.paireach.szwolaiyun.mode;

import org.json.JSONObject;

/**
 * 产品详情
 * Created by Administrator on 2016/6/23.
 */
public class ProductMode {

    private String code;
    private String name;
    private String num;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public void init(JSONObject jsonObject){
        setCode(jsonObject.optString("productCode"));
        setName(jsonObject.optString("productName"));
        setNum(jsonObject.optString("planCount"));
    }
}
